<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum=1,maximum=1">
    <title></title>
    <style>
    html,
    body,
    div {
        margin: 0;
        padding: 0;
    }
    
    html,
    body {
        width: 100%;
        height: 100%;
    }
    
    #d1 {
        width: 100%;
        height: 100%;
        background-color: green;
    }
    
    #d2 {
        width: 30%;
        height: 30%;
        background-color: #555;
    }
    </style>
</head>

<body>
    <!-- <button id="btn">点一下</button> -->
    <div id="d1">
        <div id="d2">
        </div>
    </div>
</body>
<script type="text/javascript" src="src/zepto.js"></script>
<script type="text/javascript" src="src/event.js"></script>
<script type="text/javascript" src="src/touch.js">
</script>
<script type="text/javascript" src="src/fx.js"></script>
<script type="text/javascript" src="src/fx_methods.js"></script>
<script type="text/javascript">
// $('#btn').click(function () {
// 	alert(1);
// })
$('#d1').tap(function() {
    $('#d2').animate({
        width: 300
    }, 'normal', 'swing', function() {
        alert(1)
    })
})

$('#d1').doubleTap(function() {
    $(this).css("background", "red");
})

$('#d1').swipeLeft(function() {
    $(this).css("background", "orange");
})

$('#d1').swipeRight(function() {
    $(this).css("background", "blue");
})
$('#d1').longTap(function() {
    $(this).css("background", "#997B53");
})
</script>

</html>
